package com.objetdirect.gwt.umlapi.client.emul.impl;

import com.objetdirect.gwt.umlapi.client.emul.def.GraphicObject;
import com.objetdirect.gwt.umlapi.client.emul.def.Path;
import com.objetdirect.gwt.umlapi.client.emul.def.Point;

public class TatamiPath implements Path {

	private com.objetdirect.tatami.client.gfx.Path _member = null;

	public TatamiPath(GraphicObject aGraphicalObject) {
		com.objetdirect.tatami.client.gfx.GraphicObject aGraphicObject =  (com.objetdirect.tatami.client.gfx.GraphicObject)aGraphicalObject.getInnerObject();
		_member = (com.objetdirect.tatami.client.gfx.Path)aGraphicObject;
	}

	public TatamiPath() {
		_member = new com.objetdirect.tatami.client.gfx.Path();
	}

	@Override
	public Object getInnerObject() {

		return _member;
	}

	@Override
	public void moveTo(Point point) {
		_member.moveTo((com.objetdirect.tatami.client.gfx.Point) point
				.getInnerObject());

	}

	@Override
	public void lineTo(int x, int y) {
		_member.lineTo(x, y);
	}

	@Override
	public void curveTo(Point controlBegin, Point controlEnd, Point point) {
		_member.curveTo((com.objetdirect.tatami.client.gfx.Point) controlBegin
				.getInnerObject(),
				(com.objetdirect.tatami.client.gfx.Point) controlEnd
						.getInnerObject(),
				(com.objetdirect.tatami.client.gfx.Point) point
						.getInnerObject());
	}

	@Override
	public void qCurveTo(Point control, Point pt) {
		_member.qCurveTo((com.objetdirect.tatami.client.gfx.Point) control
				.getInnerObject(), (com.objetdirect.tatami.client.gfx.Point) pt
				.getInnerObject());
	}

}
